﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace mds.Log
{
    public class ErrorService
    {
        private static ErrorService _instance = new ErrorService();
    
        public static ErrorService Instance
        {
            get { return _instance; }
           
        }
       
        public void Log(ErrorInfo error)
        {
            LogCassandra.Instance.LogError(error.ApplicationName, error.CreateTime, error.Host, error.Id, error.Ip, error.Mac, error.Message, error.ModifyTime, error.Source, error.SourceObject, error.StatuCode, error.Type);
        }
    }
}
